#include "widget.h"
#include "ui_widget.h"
#include <QIcon>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    setWindowTitle("设置一个标题");
    //用qrc机制，把图片设置窗口图标
    QIcon lcon(":/lcon");
    setWindowIcon(lcon);
}

Widget::~Widget()
{
    delete ui;
}

